#define _CRT_SECURE_NO_WARNINGS
#include"string.h"
void test1()
{
	My_String::string a("xxxxxxxxxx");
	My_String::string::iterator it1 = a.begin();
	while (it1 != a.end())
	{
		cout << *it1 << " ";
		++it1;
	}
}
void test2()
{
	My_String::string a("xxxxxxxxxx");
	My_String::string::const_iterator it1 = a.begin();
	while (it1 != a.end())
	{
		//*it1 = 'y';
		cout << *it1 << " ";
		++it1;
	}
}
void test3()
{
	My_String::string s1("abcdefg");
	s1 += "hijklmn";
	cout << s1.c_str();
}
void test4()
{
	My_String::string s2("hello world");
	s2.insert(5, ' ');
	cout << s2.c_str();
}
void test5()
{
	My_String::string s3("hello world");
	cout << s3.c_str() << endl;
	/*s3.erase(0);
	cout << s3.c_str();*/
	My_String::string s4("aaaaaaaaaaaaaaaaaaaaaaaaaaa");
	s3 = s4;
	cout << s3.c_str();
}
int main()
{
	//test1();
	test5();
	return 0;
}